package cn.wq3stone.service;

import cn.wq3stone.exception.LoginException;
import cn.wq3stone.exception.PasswordNullException;
import cn.wq3stone.exception.RegisterException;
import cn.wq3stone.exception.UsernameNullException;
import cn.wq3stone.pojo.User;

/**
 * @ClassName UserService.java
 * @Description
 * @Author cn.wq3stone
 * @Date 2023/4/25 11:03
 */
public interface UserService {
    public void register(String username, String password, String password2) throws PasswordNullException, RegisterException;
    public User login(String username, String password) throws UsernameNullException, LoginException;
}
